<template>
  <div>
    <h2>我是Home的内容</h2>
    <div>
      <ul class="nav nav-tabs">
        <li>
          <router-link class="list-group-item" to="/home/news" active-class="active">News</router-link>
          <!-- <a class="list-group-item active" href="./home-news.html">News</a> -->
        </li>
        <li>
          <router-link class="list-group-item" to="/home/message" active-class="active">Message</router-link>
          <!-- <a class="list-group-item" href="./home-message.html">Message</a> -->
        </li>
      </ul>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home",
  beforeDestroy() {
    // console.log("Home组件即将被销毁了");
  },
  mounted() {
    // console.log("Home组件挂载完毕了", this);
    // window.homeRoute = this.$route;
    // window.homeRoute = this.$router;
  },
};
</script>
